<template>
  <div class="component_wrap">
    <LssAddress v-model="selectAreaValue" :options="options" label-key="name" value-key="code" :check-strictly="true" />
    <div class="val-txt">选中的值：{{ selectAreaValue }}</div>
  </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
const selectAreaValue = ref([])

const options = ref([
  // 你的选项数据
  { name: '北京市', code: '1000', children: [{ name: '北京市', value: 'code', children: [] }] },
  {
    name: '广东省',
    code: '2000',
    children: [{ name: '深圳市', code: '2001', children: [{ name: '南山区', code: '2002' }] }]
  },
  {
    name: '江西省',
    code: '3000',
    children: [{ name: '赣州市', code: '3001', children: [{ name: '寻乌县', code: '3002' }] }]
  }
])
</script>
